//
// Created by hsj on 2022/2/23.
//
#include "student.h"
namespace t_student_with_has_a{
    void test(){
       Student ads[pupils] = {
               Student(quizzes), Student(quizzes), Student(quizzes)
       };
       //初始化数据
        int i = 0;
        for (i = 0; i < pupils; ++i) {
             set(ads[i],quizzes);
        }
        
        //打印
        for (i = 0; i < pupils; ++i) {
            cout<<endl<<ads[i];
            cout<<"Average:"<<ads[i].Average()<<endl;
        }

        cout<<endl<<"Done."<<endl;
    }
}